/*
装备配置表
img 图标
attr 属性
type 装备类型
pos 部位 arm--武器  head--头盔  body--衣服  foot--鞋子  spe--宝物
lv 穿戴等级
jie 装备阶数
kuang 装备图框类型
xwtype 装备可随机出的修为类型 
minxw  装备初始穿戴修为值要求
quality  品质
*/
window._EQUIP = {

'红岩刀':{img:'红岩刀',type:'刀',jie:'一',kuang:'普',lv:5,attr:{attack:300},xwtype:'dao',minwx:1,qua:'D'},
'【真】红岩刀':{img:'红岩刀',type:'刀',jie:'一',kuang:'真',lv:50,attr:{attack:1500},xwtype:'dao',minwx:30,qua:'D'},
'【极】红岩刀':{img:'红岩刀',type:'刀',jie:'一',kuang:'极',lv:100,attr:{attack:3000},xwtype:'dao',minwx:50,qua:'D'},
'【幻】红岩刀':{img:'红岩刀',type:'刀',jie:'一',kuang:'幻',lv:200,attr:{attack:6000},xwtype:'dao',minwx:100,qua:'D'},
'黑曜破军刀':{img:'黑曜破军刀',type:'刀',jie:'二',kuang:'普',lv:300,attr:{attack:9000},xwtype:'dao',minwx:150,qua:'D'},
'【真】黑曜破军刀':{img:'黑曜破军刀',type:'刀',jie:'二',kuang:'真',lv:400,attr:{attack:12000},xwtype:'dao',minwx:200,qua:'D'},
'【极】黑曜破军刀':{img:'黑曜破军刀',type:'刀',jie:'二',kuang:'极',lv:500,attr:{attack:15000},xwtype:'dao',minwx:300,qua:'D'},
'【幻】黑曜破军刀':{img:'黑曜破军刀',type:'刀',jie:'二',kuang:'幻',lv:600,attr:{attack:18000},xwtype:'dao',minwx:400,qua:'D'},
'金刚降魔杵':{img:'金刚降魔杵',type:'刀',jie:'三',kuang:'普',lv:700,attr:{attack:21000},xwtype:'dao',minwx:500,qua:'D'},
'【真】金刚降魔杵':{img:'金刚降魔杵',type:'刀',jie:'三',kuang:'真',lv:800,attr:{attack:24000},xwtype:'dao',minwx:600,qua:'D'},
'【极】金刚降魔杵':{img:'金刚降魔杵',type:'刀',jie:'三',kuang:'极',lv:900,attr:{attack:27000},xwtype:'dao',minwx:700,qua:'D'},
'【幻】金刚降魔杵':{img:'金刚降魔杵',type:'刀',jie:'三',kuang:'幻',lv:1000,attr:{attack:30000},xwtype:'dao',minwx:800,qua:'D'},
'真空枪':{img:'真空枪',type:'枪',jie:'一',kuang:'普',lv:5,attr:{attack:300},xwtype:'qiang',minwx:1,qua:'D'},
'【真】真空枪':{img:'真空枪',type:'枪',jie:'一',kuang:'真',lv:50,attr:{attack:1500},xwtype:'qiang',minwx:30,qua:'D'},
'【极】真空枪':{img:'真空枪',type:'枪',jie:'一',kuang:'极',lv:100,attr:{attack:3000},xwtype:'qiang',minwx:50,qua:'D'},
'【幻】真空枪':{img:'真空枪',type:'枪',jie:'一',kuang:'幻',lv:200,attr:{attack:6000},xwtype:'qiang',minwx:100,qua:'D'},
'皇极奔雷枪':{img:'皇极奔雷枪',type:'枪',jie:'二',kuang:'普',lv:300,attr:{attack:9000},xwtype:'qiang',minwx:150,qua:'D'},
'【真】皇极奔雷枪':{img:'皇极奔雷枪',type:'枪',jie:'二',kuang:'真',lv:400,attr:{attack:12000},xwtype:'qiang',minwx:200,qua:'D'},
'【极】皇极奔雷枪':{img:'皇极奔雷枪',type:'枪',jie:'二',kuang:'极',lv:500,attr:{attack:15000},xwtype:'qiang',minwx:300,qua:'D'},
'【幻】皇极奔雷枪':{img:'皇极奔雷枪',type:'枪',jie:'二',kuang:'幻',lv:600,attr:{attack:18000},xwtype:'qiang',minwx:400,qua:'D'},
'天焱流火枪':{img:'天焱流火枪',type:'枪',jie:'三',kuang:'普',lv:700,attr:{attack:21000},xwtype:'qiang',minwx:500,qua:'D'},
'【真】天焱流火枪':{img:'天焱流火枪',type:'枪',jie:'三',kuang:'真',lv:800,attr:{attack:24000},xwtype:'qiang',minwx:600,qua:'D'},
'【极】天焱流火枪':{img:'天焱流火枪',type:'枪',jie:'三',kuang:'极',lv:900,attr:{attack:27000},xwtype:'qiang',minwx:700,qua:'D'},
'【幻】天焱流火枪':{img:'天焱流火枪',type:'枪',jie:'三',kuang:'幻',lv:1000,attr:{attack:30000},xwtype:'qiang',minwx:800,qua:'D'},
'赤龙剑':{img:'赤龙剑',type:'剑',jie:'一',kuang:'普',lv:5,attr:{attack:300},xwtype:'jian',minwx:1,qua:'D'},
'【真】赤龙剑':{img:'赤龙剑',type:'剑',jie:'一',kuang:'真',lv:50,attr:{attack:1500},xwtype:'jian',minwx:30,qua:'D'},
'【极】赤龙剑':{img:'赤龙剑',type:'剑',jie:'一',kuang:'极',lv:100,attr:{attack:3000},xwtype:'jian',minwx:50,qua:'D'},
'【幻】赤龙剑':{img:'赤龙剑',type:'剑',jie:'一',kuang:'幻',lv:200,attr:{attack:6000},xwtype:'jian',minwx:100,qua:'D'},
'九天流影剑':{img:'九天流影剑',type:'剑',jie:'二',kuang:'普',lv:300,attr:{attack:9000},xwtype:'jian',minwx:150,qua:'D'},
'【真】九天流影剑':{img:'九天流影剑',type:'剑',jie:'二',kuang:'真',lv:400,attr:{attack:12000},xwtype:'jian',minwx:200,qua:'D'},
'【极】九天流影剑':{img:'九天流影剑',type:'剑',jie:'二',kuang:'极',lv:500,attr:{attack:15000},xwtype:'jian',minwx:300,qua:'D'},
'【幻】九天流影剑':{img:'九天流影剑',type:'剑',jie:'二',kuang:'幻',lv:600,attr:{attack:18000},xwtype:'jian',minwx:400,qua:'D'},
'紫电青霜剑':{img:'紫电青霜剑',type:'剑',jie:'三',kuang:'普',lv:700,attr:{attack:21000},xwtype:'jian',minwx:500,qua:'D'},
'【真】紫电青霜剑':{img:'紫电青霜剑',type:'剑',jie:'三',kuang:'真',lv:800,attr:{attack:24000},xwtype:'jian',minwx:600,qua:'D'},
'【极】紫电青霜剑':{img:'紫电青霜剑',type:'剑',jie:'三',kuang:'极',lv:900,attr:{attack:27000},xwtype:'jian',minwx:700,qua:'D'},
'【幻】紫电青霜剑':{img:'紫电青霜剑',type:'剑',jie:'三',kuang:'幻',lv:1000,attr:{attack:30000},xwtype:'jian',minwx:800,qua:'D'},

'半月弓':{img:'半月弓',type:'弓',jie:'一',kuang:'普',lv:5,attr:{attack:240,distance:2},xwtype:'she',minwx:1,qua:'D'},
'【真】半月弓':{img:'半月弓',type:'弓',jie:'一',kuang:'真',lv:50,attr:{attack:1200,distance:2},xwtype:'she',minwx:30,qua:'D'},
'【极】半月弓':{img:'半月弓',type:'弓',jie:'一',kuang:'极',lv:100,attr:{attack:2400,distance:2},xwtype:'she',minwx:50,qua:'D'},
'【幻】半月弓':{img:'半月弓',type:'弓',jie:'一',kuang:'幻',lv:200,attr:{attack:4800,distance:2},xwtype:'she',minwx:100,qua:'D'},
'乾坤震天弓':{img:'乾坤震天弓',type:'弓',jie:'二',kuang:'普',lv:300,attr:{attack:7200,distance:2},xwtype:'she',minwx:150,qua:'D'},
'【真】乾坤震天弓':{img:'乾坤震天弓',type:'弓',jie:'二',kuang:'真',lv:400,attr:{attack:9600,distance:2},xwtype:'she',minwx:200,qua:'D'},
'【极】乾坤震天弓':{img:'乾坤震天弓',type:'弓',jie:'二',kuang:'极',lv:500,attr:{attack:12000,distance:2},xwtype:'she',minwx:300,qua:'D'},
'【幻】乾坤震天弓':{img:'乾坤震天弓',type:'弓',jie:'二',kuang:'幻',lv:600,attr:{attack:14400,distance:2},xwtype:'she',minwx:400,qua:'D'},
'万里起云烟':{img:'万里起云烟',type:'弓',jie:'三',kuang:'普',lv:700,attr:{attack:16800,distance:2},xwtype:'she',minwx:500,qua:'D'},
'【真】万里起云烟':{img:'万里起云烟',type:'弓',jie:'三',kuang:'真',lv:800,attr:{attack:19200,distance:2},xwtype:'she',minwx:600,qua:'D'},
'【极】万里起云烟':{img:'万里起云烟',type:'弓',jie:'三',kuang:'极',lv:900,attr:{attack:21600,distance:2},xwtype:'she',minwx:700,qua:'D'},
'【幻】万里起云烟':{img:'万里起云烟',type:'弓',jie:'三',kuang:'幻',lv:1000,attr:{attack:24000,distance:2},xwtype:'she',minwx:800,qua:'D'},

'五明扇':{img:'五明扇',type:'扇',jie:'一',kuang:'普',lv:5,attr:{mattack:300,distance:2},xwtype:'shan',minwx:1,qua:'D'},
'【真】五明扇':{img:'五明扇',type:'扇',jie:'一',kuang:'真',lv:50,attr:{mattack:1500,distance:2},xwtype:'shan',minwx:30,qua:'D'},
'【极】五明扇':{img:'五明扇',type:'扇',jie:'一',kuang:'极',lv:100,attr:{mattack:3000,distance:2},xwtype:'shan',minwx:50,qua:'D'},
'【幻】五明扇':{img:'五明扇',type:'扇',jie:'一',kuang:'幻',lv:200,attr:{mattack:6000,distance:2},xwtype:'shan',minwx:100,qua:'D'},
'月影星辉扇':{img:'月影星辉扇',type:'扇',jie:'二',kuang:'普',lv:300,attr:{mattack:9000,distance:2},xwtype:'shan',minwx:150,qua:'D'},
'【真】月影星辉扇':{img:'月影星辉扇',type:'扇',jie:'二',kuang:'真',lv:400,attr:{mattack:12000,distance:2},xwtype:'shan',minwx:200,qua:'D'},
'【极】月影星辉扇':{img:'月影星辉扇',type:'扇',jie:'二',kuang:'极',lv:500,attr:{mattack:15000,distance:2},xwtype:'shan',minwx:300,qua:'D'},
'【幻】月影星辉扇':{img:'月影星辉扇',type:'扇',jie:'二',kuang:'幻',lv:600,attr:{mattack:18000,distance:2},xwtype:'shan',minwx:400,qua:'D'},
'煌天金翎扇':{img:'煌天金翎扇',type:'扇',jie:'三',kuang:'普',lv:700,attr:{mattack:21000,distance:2},xwtype:'shan',minwx:500,qua:'D'},
'【真】煌天金翎扇':{img:'煌天金翎扇',type:'扇',jie:'三',kuang:'真',lv:800,attr:{mattack:24000,distance:2},xwtype:'shan',minwx:600,qua:'D'},
'【极】煌天金翎扇':{img:'煌天金翎扇',type:'扇',jie:'三',kuang:'极',lv:900,attr:{mattack:27000,distance:2},xwtype:'shan',minwx:700,qua:'D'},
'【幻】煌天金翎扇':{img:'煌天金翎扇',type:'扇',jie:'三',kuang:'幻',lv:1000,attr:{mattack:30000,distance:2},xwtype:'shan',minwx:800,qua:'D'},

'玉骨杖':{img:'玉骨杖',type:'杖',jie:'一',kuang:'普',lv:5,attr:{mattack:300,distance:2},xwtype:'zhang',minwx:1,qua:'D'},
'【真】玉骨杖':{img:'玉骨杖',type:'杖',jie:'一',kuang:'真',lv:50,attr:{mattack:1500,distance:2},xwtype:'zhang',minwx:30,qua:'D'},
'【极】玉骨杖':{img:'玉骨杖',type:'杖',jie:'一',kuang:'极',lv:100,attr:{mattack:3000,distance:2},xwtype:'zhang',minwx:50,qua:'D'},
'【幻】玉骨杖':{img:'玉骨杖',type:'杖',jie:'一',kuang:'幻',lv:200,attr:{mattack:6000,distance:2},xwtype:'zhang',minwx:100,qua:'D'},
'沐雨春风杖':{img:'沐雨春风杖',type:'杖',jie:'二',kuang:'普',lv:300,attr:{mattack:9000,distance:2},xwtype:'zhang',minwx:150,qua:'D'},
'【真】沐雨春风杖':{img:'沐雨春风杖',type:'杖',jie:'二',kuang:'真',lv:400,attr:{mattack:12000,distance:2},xwtype:'zhang',minwx:200,qua:'D'},
'【极】沐雨春风杖':{img:'沐雨春风杖',type:'杖',jie:'二',kuang:'极',lv:500,attr:{mattack:15000,distance:2},xwtype:'zhang',minwx:300,qua:'D'},
'【幻】沐雨春风杖':{img:'沐雨春风杖',type:'杖',jie:'二',kuang:'幻',lv:600,attr:{mattack:18000,distance:2},xwtype:'zhang',minwx:400,qua:'D'},
'蟠龙神木杖':{img:'蟠龙神木杖',type:'杖',jie:'三',kuang:'普',lv:700,attr:{mattack:21000,distance:2},xwtype:'zhang',minwx:500,qua:'D'},
'【真】蟠龙神木杖':{img:'蟠龙神木杖',type:'杖',jie:'三',kuang:'真',lv:800,attr:{mattack:24000,distance:2},xwtype:'zhang',minwx:600,qua:'D'},
'【极】蟠龙神木杖':{img:'蟠龙神木杖',type:'杖',jie:'三',kuang:'极',lv:900,attr:{mattack:27000,distance:2},xwtype:'zhang',minwx:700,qua:'D'},
'【幻】蟠龙神木杖':{img:'蟠龙神木杖',type:'杖',jie:'三',kuang:'幻',lv:1000,attr:{mattack:30000,distance:2},xwtype:'zhang',minwx:800,qua:'D'},

'黑龙铠':{img:'黑龙铠',type:'重',jie:'一',kuang:'普',lv:5,attr:{defend:240,mdefend:80},xwtype:'zhong',minwx:1,qua:'D'},
'【真】黑龙铠':{img:'黑龙铠',type:'重',jie:'一',kuang:'真',lv:50,attr:{defend:1125,mdefend:375},xwtype:'zhong',minwx:30,qua:'D'},
'【极】黑龙铠':{img:'黑龙铠',type:'重',jie:'一',kuang:'极',lv:100,attr:{defend:2250,mdefend:750},xwtype:'zhong',minwx:50,qua:'D'},
'【幻】黑龙铠':{img:'黑龙铠',type:'重',jie:'一',kuang:'幻',lv:200,attr:{defend:4500,mdefend:1500},xwtype:'zhong',minwx:100,qua:'D'},
'焰烈飞金铠':{img:'焰烈飞金铠',type:'重',jie:'二',kuang:'普',lv:300,attr:{defend:6750,mdefend:2250},xwtype:'zhong',minwx:150,qua:'D'},
'【真】焰烈飞金铠':{img:'焰烈飞金铠',type:'重',jie:'二',kuang:'真',lv:400,attr:{defend:9000,mdefend:3000},xwtype:'zhong',minwx:200,qua:'D'},
'【极】焰烈飞金铠':{img:'焰烈飞金铠',type:'重',jie:'二',kuang:'极',lv:500,attr:{defend:11250,mdefend:3750},xwtype:'zhong',minwx:300,qua:'D'},
'【幻】焰烈飞金铠':{img:'焰烈飞金铠',type:'重',jie:'二',kuang:'幻',lv:600,attr:{defend:13500,mdefend:4500},xwtype:'zhong',minwx:400,qua:'D'},
'云天青龙铠':{img:'云天青龙铠',type:'重',jie:'三',kuang:'普',lv:700,attr:{defend:15750,mdefend:5250},xwtype:'zhong',minwx:500,qua:'D'},
'【真】云天青龙铠':{img:'云天青龙铠',type:'重',jie:'三',kuang:'真',lv:800,attr:{defend:18000,mdefend:6000},xwtype:'zhong',minwx:600,qua:'D'},
'【极】云天青龙铠':{img:'云天青龙铠',type:'重',jie:'三',kuang:'极',lv:900,attr:{defend:20250,mdefend:6750},xwtype:'zhong',minwx:700,qua:'D'},
'【幻】云天青龙铠':{img:'云天青龙铠',type:'重',jie:'三',kuang:'幻',lv:1000,attr:{defend:22500,mdefend:7500},xwtype:'zhong',minwx:800,qua:'D'},
'鱼鳞甲':{img:'鱼鳞甲',type:'皮',jie:'一',kuang:'普',lv:5,attr:{defend:150,mdefend:150},xwtype:'pi',minwx:1,qua:'D'},
'【真】鱼鳞甲':{img:'鱼鳞甲',type:'皮',jie:'一',kuang:'真',lv:50,attr:{defend:750,mdefend:750},xwtype:'pi',minwx:30,qua:'D'},
'【极】鱼鳞甲':{img:'鱼鳞甲',type:'皮',jie:'一',kuang:'极',lv:100,attr:{defend:1500,mdefend:1500},xwtype:'pi',minwx:50,qua:'D'},
'【幻】鱼鳞甲':{img:'鱼鳞甲',type:'皮',jie:'一',kuang:'幻',lv:200,attr:{defend:3000,mdefend:3000},xwtype:'pi',minwx:100,qua:'D'},
'天罡无极甲':{img:'天罡无极甲',type:'皮',jie:'二',kuang:'普',lv:300,attr:{defend:4500,mdefend:4500},xwtype:'pi',minwx:150,qua:'D'},
'【真】天罡无极甲':{img:'天罡无极甲',type:'皮',jie:'二',kuang:'真',lv:400,attr:{defend:6000,mdefend:6000},xwtype:'pi',minwx:200,qua:'D'},
'【极】天罡无极甲':{img:'天罡无极甲',type:'皮',jie:'二',kuang:'极',lv:500,attr:{defend:7500,mdefend:7500},xwtype:'pi',minwx:300,qua:'D'},
'【幻】天罡无极甲':{img:'天罡无极甲',type:'皮',jie:'二',kuang:'幻',lv:600,attr:{defend:9000,mdefend:9000},xwtype:'pi',minwx:400,qua:'D'},
'蚩尤血炼甲':{img:'蚩尤血炼甲',type:'皮',jie:'三',kuang:'普',lv:700,attr:{defend:10500,mdefend:10500},xwtype:'pi',minwx:500,qua:'D'},
'【真】蚩尤血炼甲':{img:'蚩尤血炼甲',type:'皮',jie:'三',kuang:'真',lv:800,attr:{defend:12000,mdefend:12000},xwtype:'pi',minwx:600,qua:'D'},
'【极】蚩尤血炼甲':{img:'蚩尤血炼甲',type:'皮',jie:'三',kuang:'极',lv:900,attr:{defend:13500,mdefend:13500},xwtype:'pi',minwx:700,qua:'D'},
'【幻】蚩尤血炼甲':{img:'蚩尤血炼甲',type:'皮',jie:'三',kuang:'幻',lv:1000,attr:{defend:15000,mdefend:15000},xwtype:'pi',minwx:800,qua:'D'},
'白羽衣':{img:'白羽衣',type:'布',jie:'一',kuang:'普',lv:5,attr:{defend:80,mdefend:240},xwtype:'bu',minwx:1,qua:'D'},
'【真】白羽衣':{img:'白羽衣',type:'布',jie:'一',kuang:'真',lv:50,attr:{defend:375,mdefend:1125},xwtype:'bu',minwx:30,qua:'D'},
'【极】白羽衣':{img:'白羽衣',type:'布',jie:'一',kuang:'极',lv:100,attr:{defend:750,mdefend:2250},xwtype:'bu',minwx:50,qua:'D'},
'【幻】白羽衣':{img:'白羽衣',type:'布',jie:'一',kuang:'幻',lv:200,attr:{defend:1500,mdefend:4500},xwtype:'bu',minwx:100,qua:'D'},
'八卦紫绶衣':{img:'八卦紫绶衣',type:'布',jie:'二',kuang:'普',lv:300,attr:{defend:2250,mdefend:6750},xwtype:'bu',minwx:150,qua:'D'},
'【真】八卦紫绶衣':{img:'八卦紫绶衣',type:'布',jie:'二',kuang:'真',lv:400,attr:{defend:3000,mdefend:9000},xwtype:'bu',minwx:200,qua:'D'},
'【极】八卦紫绶衣':{img:'八卦紫绶衣',type:'布',jie:'二',kuang:'极',lv:500,attr:{defend:3750,mdefend:11250},xwtype:'bu',minwx:300,qua:'D'},
'【幻】八卦紫绶衣':{img:'八卦紫绶衣',type:'布',jie:'二',kuang:'幻',lv:600,attr:{defend:4500,mdefend:13500},xwtype:'bu',minwx:400,qua:'D'},
'七彩流光衣':{img:'七彩流光衣',type:'布',jie:'三',kuang:'普',lv:700,attr:{defend:5250,mdefend:15750},xwtype:'bu',minwx:500,qua:'D'},
'【真】七彩流光衣':{img:'七彩流光衣',type:'布',jie:'三',kuang:'真',lv:800,attr:{defend:6000,mdefend:18000},xwtype:'bu',minwx:600,qua:'D'},
'【极】七彩流光衣':{img:'七彩流光衣',type:'布',jie:'三',kuang:'极',lv:900,attr:{defend:6750,mdefend:20250},xwtype:'bu',minwx:700,qua:'D'},
'【幻】七彩流光衣':{img:'七彩流光衣',type:'布',jie:'三',kuang:'幻',lv:1000,attr:{defend:7500,mdefend:22500},xwtype:'bu',minwx:800,qua:'D'},


'太极图':{img:'太极图',type:'宝',jie:'一',kuang:'普',lv:5,attr:{maxHp:1000},xwtype:'bao',minwx:1,qua:'D'},
'【真】太极图':{img:'太极图',type:'宝',jie:'一',kuang:'真',lv:50,attr:{maxHp:5000},xwtype:'bao',minwx:30,qua:'D'},
'【极】太极图':{img:'太极图',type:'宝',jie:'一',kuang:'极',lv:100,attr:{maxHp:10000},xwtype:'bao',minwx:50,qua:'D'},
'【幻】太极图':{img:'太极图',type:'宝',jie:'一',kuang:'幻',lv:200,attr:{maxHp:20000},xwtype:'bao',minwx:100,qua:'D'},
'混元金斗':{img:'混元金斗',type:'宝',jie:'二',kuang:'普',lv:300,attr:{maxHp:30000},xwtype:'bao',minwx:150,qua:'D'},
'【真】混元金斗':{img:'混元金斗',type:'宝',jie:'二',kuang:'真',lv:400,attr:{maxHp:40000},xwtype:'bao',minwx:200,qua:'D'},
'【极】混元金斗':{img:'混元金斗',type:'宝',jie:'二',kuang:'极',lv:500,attr:{maxHp:50000},xwtype:'bao',minwx:300,qua:'D'},
'【幻】混元金斗':{img:'混元金斗',type:'宝',jie:'二',kuang:'幻',lv:600,attr:{maxHp:60000},xwtype:'bao',minwx:400,qua:'D'},
'炼魂紫金钵':{img:'炼魂紫金钵',type:'宝',jie:'三',kuang:'普',lv:700,attr:{maxHp:70000},xwtype:'bao',minwx:500,qua:'D'},
'【真】炼魂紫金钵':{img:'炼魂紫金钵',type:'宝',jie:'三',kuang:'真',lv:800,attr:{maxHp:80000},xwtype:'bao',minwx:600,qua:'D'},
'【极】炼魂紫金钵':{img:'炼魂紫金钵',type:'宝',jie:'三',kuang:'极',lv:900,attr:{maxHp:90000},xwtype:'bao',minwx:700,qua:'D'},
'【幻】炼魂紫金钵':{img:'炼魂紫金钵',type:'宝',jie:'三',kuang:'幻',lv:1000,attr:{maxHp:100000},xwtype:'bao',minwx:800,qua:'D'},


//专属
//哪吒
"定风丹":{img:'定风丹',type:'宝',jie:'三',kuang:'幻',lv:100,attr:{maxHpPer:10,MagicRecovery:1},xwtype:'bao',minwx:800,qua:'D',iszs:1},
"天地宝鉴":{img:'天地宝鉴',type:'宝',jie:'三',kuang:'幻',lv:100,attr:{maxHpPer:10,hpRecovery:10},xwtype:'bao',minwx:800,qua:'D',iszs:1},

"阴阳二气瓶":{img:'阴阳二气瓶',type:'宝',jie:'三',kuang:'幻',lv:200,attr:{maxHpPer:20,maxMagic:3},xwtype:'bao',minwx:800,qua:'D',iszs:1},
"紫金红葫芦":{img:'紫金红葫芦',type:'宝',jie:'三',kuang:'幻',lv:200,attr:{maxHpPer:20,beginMagic:3},xwtype:'bao',minwx:800,qua:'D',iszs:1},

"幌金绳":{img:'幌金绳',type:'宝',jie:'三',kuang:'幻',lv:300,attr:{maxHpPer:30,distance:1},xwtype:'bao',minwx:800,qua:'D',iszs:1},
"紫金铃":{img:'紫金铃',type:'宝',jie:'三',kuang:'幻',lv:300,attr:{maxHpPer:30,lianji:1},xwtype:'bao',minwx:800,qua:'D',iszs:1},

"辟火罩":{img:'辟火罩',type:'宝',jie:'三',kuang:'幻',lv:400,attr:{maxHpPer:40,hardwork:20},xwtype:'bao',minwx:800,qua:'D',iszs:1},
"金刚琢":{img:'金刚琢',type:'宝',jie:'三',kuang:'幻',lv:400,attr:{maxHpPer:40,shareExp:50},xwtype:'bao',minwx:800,qua:'D',iszs:1},

"棕衣":{img:'棕衣',type:'布',jie:'三',kuang:'幻',lv:500,attr:{defendPer:10,mdefendPer:50,magicCloth:1},xwtype:'bu',minwx:800,qua:'D',iszs:1},
"混天绫":{img:'混天绫',type:'皮',jie:'三',kuang:'幻',lv:500,attr:{defendPer:30,mdefendPer:30,miss:100},xwtype:'pi',minwx:800,qua:'D',iszs:1},
"锁子黄金甲":{img:'锁子黄金甲',type:'重',jie:'三',kuang:'幻',lv:500,attr:{defendPer:50,mdefendPer:10,shendun:1},xwtype:'zhong',minwx:800,qua:'D',iszs:1},

"狼牙棒":{img:'狼牙棒',type:'枪',jie:'三',kuang:'幻',lv:600,attr:{attackPer:60,xiezhan:1},xwtype:'qiang',minwx:800,qua:'D',iszs:1},
"天罡刀":{img:'黑曜破军刀',type:'刀',jie:'三',kuang:'幻',lv:600,attr:{attackPer:60,fanji:1},xwtype:'dao',minwx:800,qua:'D',iszs:1},

"火尖枪":{img:'火尖枪',type:'枪',jie:'三',kuang:'幻',lv:700,attr:{attackPer:70,firePlus:300},xwtype:'qiang',minwx:800,qua:'D',iszs:1},
"杨柳枝":{img:'杨柳枝',type:'杖',jie:'三',kuang:'幻',lv:700,attr:{maxHpPer:70,gushang:300000},xwtype:'zhang',minwx:800,qua:'D',iszs:1},

"七星剑":{img:'七星剑',type:'剑',jie:'三',kuang:'幻',lv:800,attr:{attackPer:80,magicPer:30},xwtype:'jian',minwx:800,qua:'D',iszs:1},
"随心铁杆兵":{img:'随心铁杆兵',type:'枪',jie:'三',kuang:'幻',lv:800,attr:{attackPer:80,lianjiSkill:1},xwtype:'qiang',minwx:800,qua:'D',iszs:1},

"九齿钉耙":{img:'九齿钉耙',type:'刀',jie:'三',kuang:'幻',lv:900,attr:{attackPer:90,poge:1},xwtype:'dao',minwx:800,qua:'D',iszs:1},
"三尖两刃刀":{img:'三尖两刃刀',type:'枪',jie:'三',kuang:'幻',lv:900,attr:{attackPer:90,beActive:1},xwtype:'qiang',minwx:800,qua:'D',iszs:1},

"如意金箍棒":{img:'如意金箍棒',type:'枪',jie:'三',kuang:'幻',lv:1000,attr:{attackPer:100,sblood:50},xwtype:'qiang',minwx:800,qua:'D',iszs:1},
"芭蕉扇":{img:'芭蕉扇',type:'扇',jie:'三',kuang:'幻',lv:1000,attr:{mattackPer:100,distance:2,scope:1},xwtype:'shan',minwx:800,qua:'D',iszs:1},


//VIP
"凤翅紫金冠":{img:'凤翅紫金冠',type:'宝',jie:'三',kuang:'幻',lv:1000,attr:{maxHp:1000000,hide:1},xwtype:'bao',minwx:800,qua:'D',iszs:1},
"藕丝步云履":{img:'藕丝步云履',type:'宝',jie:'三',kuang:'幻',lv:1000,attr:{maxHp:1000000,beActive:1},xwtype:'bao',minwx:800,qua:'D',iszs:1},
"金铙":{img:'金铙',type:'宝',jie:'三',kuang:'幻',lv:1000,attr:{maxHp:1000000,goldCloth:1},xwtype:'bao',minwx:800,qua:'D',iszs:1},
"人种袋":{img:'人种袋',type:'宝',jie:'三',kuang:'幻',lv:1000,attr:{maxHp:1000000,hardwork:1000},xwtype:'bao',minwx:800,qua:'D',iszs:1},
"乾坤袖":{img:'乾坤袖',type:'宝',jie:'三',kuang:'幻',lv:1000,attr:{maxHp:1000000,gushang:1000000},xwtype:'bao',minwx:800,qua:'D',iszs:1},
"玉净瓶":{img:'玉净瓶',type:'宝',jie:'三',kuang:'幻',lv:1000,attr:{maxHp:1000000,scope:2},xwtype:'bao',minwx:800,qua:'D',iszs:1},
"羊脂玉净瓶":{img:'羊脂玉净瓶',type:'宝',jie:'三',kuang:'幻',lv:1000,attr:{maxHp:1000000,magicPer:30},xwtype:'bao',minwx:800,qua:'D',iszs:1},
"风火轮":{img:'风火轮',type:'宝',jie:'三',kuang:'幻',lv:1000,attr:{maxHp:1000000,firePlus:500},xwtype:'bao',minwx:800,qua:'D',iszs:1},
"乾坤圈":{img:'乾坤圈',type:'宝',jie:'三',kuang:'幻',lv:1000,attr:{maxHp:1000000,aqScope:5},xwtype:'bao',minwx:800,qua:'D',iszs:1},
"照妖神镜":{img:'照妖镜',type:'宝',jie:'三',kuang:'幻',lv:1000,attr:{maxHp:1000000,beginEnergy:100},xwtype:'bao',minwx:800,qua:'D',iszs:1},
"玲珑宝塔":{img:'玲珑宝塔',type:'宝',jie:'三',kuang:'幻',lv:1000,attr:{maxHp:1000000,lianji:3},xwtype:'bao',minwx:800,qua:'D',iszs:1},
"绣花针":{img:'绣花针',type:'宝',jie:'三',kuang:'幻',lv:1000,attr:{maxHp:1000000,lianjiSkill:1},xwtype:'bao',minwx:800,qua:'D',iszs:1},


};

window._EQUIPMAP = null;

window._EQUIPHELPER = {

	testEquipShop:function(){
		var result = [];
		for(var key in _EQUIP){
			result.push(key);
		}

		return result.join('","');
	},

	getEuipObj:function(job,lv,qua,stone){

		if(!window._EQUIPMAP){
			_EQUIPHELPER.initEquipMap();
		}

		if(!_JOB[job]||!_JOB[job].equipType){
			return {};
		}

		var jobConfig = _JOB[job];
		var equipType = jobConfig.equipType;
		var armType = equipType[0];
		var otherType = equipType[1];

		var spelv = 0;
		var armlv = lv-lv%100;
		if(armlv>1000){
			armlv=1000;
		}else if(armlv<=0){
			armlv=1;
		}
		if(lv>=100&&lv<300){
			spelv=100;
		}else if(lv>=300&&lv<600){
			spelv=300;
		}else if(lv>=600&&lv<1000){
			spelv=600;
		}else if(lv>=1000){
			spelv=1000;
		}

		var armObj = window._EQUIPMAP.arm[armType][armlv];
		var speObj = window._EQUIPMAP.spe[spelv];
		var otherObj = window._EQUIPMAP.other[otherType][armlv];

		var equiparr = [];
		if(armObj){
			equiparr = equiparr.concat(armObj);
		}
		if(otherObj){
			equiparr = equiparr.concat(otherObj);
		}
		if(speObj){
			equiparr = equiparr.concat([_CU.randomObj(speObj)]);
		}
		var equipObj = {};
		for(var i=0;i<equiparr.length;i++){
			var equipname = equiparr[i];
			var equipConfig = _EQUIP[equipname];
			equipObj[equipConfig.pos]=_IOF.createObjByName(equipname,{qua:qua,stone:stone});
		}
		
		return equipObj;
	},

	initEquipMap:function(){

		window._EQUIPMAP = {
			spe:{},
			arm:{},
			other:{},
		};

		for(var key in _EQUIP){

			var equipConfig = _EQUIP[key];
			var pos = equipConfig.pos;
			var type = equipConfig.type;
			var lv = equipConfig.lv;
			var temparr = null;

			if(pos=="spe"){
				if(!_EQUIPMAP.spe[lv]){
					_EQUIPMAP.spe[lv]=[];
				}
				temparr = _EQUIPMAP.spe[lv];
			}else if(pos=="arm"){
				if(!_EQUIPMAP.arm[type]){
					_EQUIPMAP.arm[type]={};
				}
				if(!_EQUIPMAP.arm[type][lv]){
					_EQUIPMAP.arm[type][lv]=[];
				}
				temparr = _EQUIPMAP.arm[type][lv];
			}else{
				if(!_EQUIPMAP.other[type]){
					_EQUIPMAP.other[type]={};
				}
				if(!_EQUIPMAP.other[type][lv]){
					_EQUIPMAP.other[type][lv]=[];
				}
				temparr = _EQUIPMAP.other[type][lv];
			}
			temparr.push(key);
		}

	},

    canWear:function(role,equipName,equipObj){

		if(role.equip&&role.equip.length>=5){
			return {flag:false,msg:'同一个角色无法装备5件以上装备'};
		}

		var currentEquipType={};
		var equipConfig = _EQUIP[equipName];
		var equipType = equipConfig.type;
		var realjob = _MRDL.getJobOfRole(role);
		var jobConfig  = _JOB[realjob];
		var jobEquipType = {};
		for(var i=0;i<jobConfig.equipType.length;i++){
			if(!jobEquipType[jobConfig.equipType[i]]){
				jobEquipType[jobConfig.equipType[i]]=1;
			}else{
				jobEquipType[jobConfig.equipType[i]]++;
			}
		}
		if(!jobEquipType[equipType]){
			return {flag:false,msg:'该职业无法装备'+equipType};
		}

		var rolelv = _ROLEDATA.getRoleLv(role);
		if(rolelv<equipConfig.lv&&!equipConfig.iszs){
			return {flag:false,msg:'等级不足无法装备'};
		}

		for(var i=0;i<role.equip.length;i++){
			var tempequip = role.equip[i];
			var tempequipConfig = _EQUIP[tempequip.type];
			if(equipConfig&&jobEquipType[tempequipConfig.type]){
				jobEquipType[tempequipConfig.type]--;
			}
			currentEquipType[tempequip.type]=1;
		}

		if(currentEquipType[equipName]){
			return {flag:false,msg:'同名装备只能穿戴一件'};
		}

		if(!jobEquipType[equipType]){
			return {flag:false,msg:'该角色无法装备更多的'+equipType};
		}

		if(equipObj){
			if(!XWH.isXwEnough(equipObj,role)){

				return {flag:false,msg:'修为不足无法装备'};
			}
		}

        return {flag:true};
    }


}